
package edu.ubb.bibliospring.api.assembler;

import javax.ejb.Local;

import edu.ubb.bibliospring.backend.model.BaseEntity;
import edu.ubb.bibliospring.common.dto.DataTransferObject;

@Local
public interface Assembler<M extends BaseEntity, D extends DataTransferObject> {
    
    M createModel ();
    
    D createDto ();
    
    D modelToDto (M model);
    
    M dtoToModel (D dto);
    
}

